#ifndef HEAD_H
#define HEAD_H

#include <QMainWindow>
#include <QMouseEvent>
#include <QWidget>

namespace Ui {
class Head;
}

class Head : public QWidget
{
    Q_OBJECT

public:
    explicit Head(QWidget *parent = nullptr);
    ~Head();

private slots:
    void on_pushButton_clicked();

    void on_pushButton_2_clicked();

    QMainWindow* getMainWin();


protected:
    void mouseMoveEvent(QMouseEvent *event)override;
    void mousePressEvent(QMouseEvent *event)override;
    void mouseReleaseEvent(QMouseEvent *event)override;
private:
    QPoint mousePoint;
    bool mouse_press;


private:
    Ui::Head *ui;
};

#endif // HEAD_H
